package com.itycu.server.domain.business;

import com.itycu.server.annotation.Excel;
import com.itycu.server.core.domain.BaseNewEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;

/**
 * 生产子表对象 pra_produces
 *
 * @author itycu
 * @date 2025-02-25
 */
@TableName("pra_produces")
public class PraProduces extends BaseNewEntity {
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 生产主表id */
    @Excel(name = "生产主表id")
    private Long pid;

    /** 原料id */
    @Excel(name = "原料id")
    private Long invid;

    /** 原料数量 */
    @Excel(name = "原料数量")
    private Long inum;

    /** 负责人 */
    @Excel(name = "负责人")
    private String person;

    /** 工序名称 */
    @Excel(name = "工序名称")
    private String process;

    /** 部门状态（0正常 1停用） */
    @Excel(name = "部门状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 备注 */
    @Excel(name = "备注")
    private String memo;

    /** 创建时间 */
    private Date createTime;

    /** 创建者 */
    private Long createBy;

    /** 更新时间 */
    private Date updateTime;

    /** 更新者 */
    private Long updateBy;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setPid(Long pid)
    {
        this.pid = pid;
    }

    public Long getPid()
    {
        return pid;
    }
    public void setInvid(Long invid)
    {
        this.invid = invid;
    }

    public Long getInvid()
    {
        return invid;
    }
    public void setInum(Long inum)
    {
        this.inum = inum;
    }

    public Long getInum()
    {
        return inum;
    }
    public void setPerson(String person)
    {
        this.person = person;
    }

    public String getPerson()
    {
        return person;
    }
    public void setProcess(String process)
    {
        this.process = process;
    }

    public String getProcess()
    {
        return process;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setMemo(String memo)
    {
        this.memo = memo;
    }

    public String getMemo()
    {
        return memo;
    }
    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }

    public Date getCreateTime()
    {
        return createTime;
    }
    public void setCreateBy(Long createBy)
    {
        this.createBy = createBy;
    }

    public Long getCreateBy()
    {
        return createBy;
    }
    public void setUpdateTime(Date updateTime)
    {
        this.updateTime = updateTime;
    }

    public Date getUpdateTime()
    {
        return updateTime;
    }
    public void setUpdateBy(Long updateBy)
    {
        this.updateBy = updateBy;
    }

    public Long getUpdateBy()
    {
        return updateBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pid", getPid())
            .append("invid", getInvid())
            .append("inum", getInum())
            .append("person", getPerson())
            .append("process", getProcess())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("memo", getMemo())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
